/* Site Footer Styles (News Gradient Version) */
/* 基于 footer.css 复制，并将背景改为与“新闻动态”一致的渐变底色
   如需微调颜色，可修改 --news-gradient-start 与 --news-gradient-end 变量 */
:root {
  --news-gradient-start: #acb4e1; /* 统一为用户指定色 */
  --news-gradient-mid: #acb4e1; /* 统一为用户指定色 */
  --news-gradient-end: #acb4e1; /* 统一为用户指定色 */
}

a {
  text-decoration: none;
  color: inherit;
}

.site-footer {
  /* 使用与新闻动态一致的纯底色 */
  /* background: #acb4e1; */
  background-image: url(https://oss.allintrip.cn/shanwentou/templates/image/footer.png);
  background-size: cover;
  color: #fff;
  padding: 3rem 3rem;
  position: relative;
  font-size: 1rem;
  display: block !important; /* 覆盖 index.html 中的默认隐藏 */
  min-height: 178px; /* 与设计稿高度保持一致 */
  overflow: hidden; /* 允许内部装饰元素裁切 */
}

/* 适度的暗层，保证前景对比度，与原有叠加层保持一致但更轻 */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(40, 40, 40, 0.25);
  z-index: 1;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%; /* 用遮罩控制左右显示范围，避免布局受宽度影响 */
  height: 100%;
  z-index: 1; /* 在内容层(.footer-container z-index:2)之下 */
  pointer-events: none;

  /* 实心黑色透明小点（与上方一致的黑色半透明风格） */
  /* background-image: radial-gradient(
    rgba(0, 0, 0, 0.22) 1.1px,
    rgba(0, 0, 0, 0) 1.1px
  ); */
  background-size: 12px 12px; /* 网格间距，可微调 11/13 */
  background-position: 6px 6px; /* 起始不贴左上角，观感更自然 */

  /* 左有右无（以中线为边界，50%硬切） */
  /* -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 50%
  ); */
  /* mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 50%
  ); */
}

.footer-container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
}

/* 左侧“小点点”半色调效果，覆盖左侧约60%，并向右侧渐隐 */
/* 删除重复定义，保留上方版本 */

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo-section {
  flex-basis: 100%;
}

.footer-logo {
  width: 15rem;
  margin-bottom: 1.5rem;
}
.footer-wx {
  width: 32px;
  height: 32px;
  /* margin-bottom: 1.5rem; */
}

.footer-social-icons {
  text-align: left;
}
.social-icon-wrapper {
  position: relative;
  display: inline-block;
}
.qr-popup {
  display: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}
.qr-popup.show {
  display: block;
}
.qr-popup img {
  width: 150px;
  height: 150px;
  display: block;
}
.qr-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.footer-social-icons a {
  margin-right: 2rem;
}
.footer-social-icons svg {
  width: 2rem;
  height: 2rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-social-icons svg:hover {
  opacity: 1;
}
.footer-icons-nav {
  display: flex;
}
.footer-social-icons .iconfont {
  font-size: 2.8rem;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s;
  vertical-align: middle;
}
.footer-social-icons a:hover .iconfont {
  opacity: 1;
}

.footer-nav-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}
.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-col li {
  margin-bottom: 1rem;
  margin-right: 2rem;
}
.footer-nav-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
}
.footer-copyright p {
  margin: 0.5rem 0;
  color: #fff;
}
.footer-copyright a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-right: 1.5rem;
  transition: color 0.3s;
}
.footer-legal a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 12vw 5vw;
  }
  .footer-top {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo-section {
    width: 100%;
    margin-bottom: 1rem;
  }
  .footer-nav-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    right: 0;
    top: auto;
    margin-left: 0;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .footer-icons-nav {
    display: block;
  }
  .footer-nav-col li {
    margin-right: 1rem;
  }
}
